import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);
export const routes = [
  {
    path: '/',
    redirect: '/fireworks'
  },
  {
    component: () => import('@/views/autoFont/index.vue'),
    name: 'autofont',
    path: '/autofont',
    meta: {
      title: '自适应缩放字号'
    }
  },
  {
    component: () => import('@/views/ScrollList/GeneralList/index.vue'),
    name: 'list1',
    path: '/list1',
    meta: {
      title: '插件列表'
    }
  },
  {
    component: () => import('@/views/ScrollList/GeneralList/index.vue'),
    name: 'list2',
    path: '/list2',
    meta: {
      title: 'scroll列表'
    }
  },
  {
    component: () => import('@/views/winUIScroll/index.vue'),
    name: 'list',
    path: '/list',
    meta: {
      title: 'win-ui列表'
    }
  },
  {
    component: () => import('@/views/PersonInfo/index.vue'),
    name: 'personInfo',
    path: '/personInfo',
    meta: {
      title: 'PersonInfo'
    }
  },
  {
    component: () => import('@/views/Fireworks/index.vue'),
    name: 'fireworks',
    path: '/fireworks',
    meta: {
      title: '烟花'
    }
  }
];
const router = new Router({
  mode: 'hash',
  routes
});
export default router;
